﻿using Newtonsoft.Json;
using System;

namespace synoexec.synologylib.DataType
{
    public class BackupResult
    {
        [JsonProperty("backup_type")]
        public int BackupType { get; set; }
        [JsonProperty("detail_path")]
        public string DetailPath { get; set; }
        [JsonProperty("error_count")]
        public int ErrorCount { get; set; }
        [JsonProperty("job_action")]
        public int JobAction { get; set; }
        [JsonProperty("none_count")]
        public long NoneCount { get; set; }
        [JsonProperty("result_id")]
        public long ResultId { get; set; }
        [JsonProperty("status")]
        public int Status { get; set; }
        [JsonProperty("success_count")]
        public long SuccessCount { get; set; }
        [JsonProperty("task_id")]
        public int TaskId { get; set; }
        [JsonProperty("task_name")]
        public string TaskName { get; set; }
        [JsonProperty("time_end")]
        public long TimeEnd { get; set; }
        [JsonProperty("time_start")]
        public long TimeStart { get; set; }
        [JsonProperty("transfered_bytes")]
        public long TransferedBytes { get; set; }
        [JsonProperty("warning_count")]
        public long WarningCount { get; set; }
    }
}
